<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="persdoc" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
	<title>Personal Doc</title>
	<link href="${pageContext.request.contextPath}/resources/styles/main.css" type="text/css" rel="stylesheet" media="screen"/>
</head>
<body>
	<div id="header">
		<div class="wrap">
			<%@ include file="../general/header.jsp" %>
		</div>
	</div>
	<div class="wrap">
		<div id="main"><!--
			<div style="text-align:center"><a href="new">Add examination</a></div>	
					--><div class="row">
						<div class="column grid_9">
							<c:choose>
								<c:when test="${empty patients}">
									<p>No patients in database</p>
								</c:when>
								<c:otherwise>
									<h2>PATIENTS</h2>
									<ul>
									<c:forEach items="${patients}" var="patient">
										<li><span style="margin-right:10px;">${patient}</span><a href="<c:url value="/blog/exams/${patient}"/>">Show examinations results</a></li>
									</c:forEach>
									</ul>
								</c:otherwise>
							</c:choose>
					</div>
			</div>
		</div>
		
		<div id="side">
			<%@ include file="../general/side.jsp" %>
		</div>
	
		<div id="footer">
			<%@ include file="../general/footer.jsp" %>
		</div>
	</div>	
</body>
</html>